﻿@model CommerceOne.Domains.Entities.Category

@if (Model != null)
{
    <ul>
    <li><a href="/@Model.Id/Department/1">@Model.Name (@Model.ProductCount)</a></li>
    @if (Model.ChildCategory != null)
    {
        foreach(var item in Model.ChildCategory)
        {
            <li style="padding-left: 10px;"><a href="/@item.Id/Department/1">@Html.Partial("_Department", item)</a> </li>
        }
    }
    </ul>
    
}